<?php $cs = Yii::app()->clientScript?>
<?php $assetsUrl = AdminModule::getAssetsUrl()?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="zh_cn" />
	<?php $cs->registerCssFile($assetsUrl.'/css/reset.css')?>
	<?php $cs->registerCssFile($assetsUrl.'/css/style.css')?>
	<?php $cs->registerCoreScript('jquery')?>
	<?php $cs->registerCoreScript('cookie')?>
	<?php $cs->registerScriptFile(Yii::app()->baseUrl.'/scripts/common.js')?>
	<?php $cs->registerScriptFile($assetsUrl.'/scripts/admin.js')?>
	<?php AdminDialog::registerAssetFiles('yiibackend')?>
	<?php $cs->registerScriptFile($assetsUrl.'/scripts/yetii.js')?>
	<title><?php echo Yii::app()->params['backendName']; ?></title>
</head>
<body>
<div id='hld'>
	<div id='header' class='container'>
		<div id='logo'>
			<img src='<?php echo $assetsUrl.'/images/logo.png'?>'/>
		</div>
		<h1 id='app-name'><?php echo Yii::app()->params['backendName']?></h1>
		<div id='user-console'>
			<span>您好，</span> <?php echo Yii::app()->adminUser->roleName.'  '.Yii::app()->adminUser->name?> | 
			<a href='<?php echo $this->createUrl(AdminModule::DEFAULT_ROUTE.'logout')?>'>[注销]</a> |
			<a href='<?php echo $this->createUrl(AdminModule::DEFAULT_ROUTE.'updatePwd')?>'>[修改密码]</a> | 
			<a href='javascript:void(0)' id='switch-screen'>[切换窄版]</a>
		</div>
		<div class='clearfix'></div>
		<?php $this->widget('Menu',array(
			'cssFile' => $assetsUrl . '/css/menu.css',
			'items' => Purview::menu(Yii::app()->adminUser->getMenu())
		));?>
	</div>
	
	<div class="container" id="page">
		<div id='header-control-panel'>
			<?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('Breadcrumbs', array(
					'links'=>$this->breadcrumbs,
				)); ?><!-- breadcrumbs -->
			<?php endif?>
			<?php if(isset($this->operates)):?>
			<div id='right-operates' class='fr'>
				<?php $this->widget('Operator', array(
					'buttons' => $this->operates
				))?>
			</div>
			<?php endif?>
			<div class='clearfix'></div>
		</div>
		<?php $this->widget('FlashBox')?>
		<?php echo $content; ?>
	</div>
	
	<div id="footer" class="container" >
		Copyright © <a href='http://www.zhongsou.com'>zhongsou.com</a> All rights reserved.
	</div><!-- footer -->
</div>
</body>
</html>